import unittest
from HTMLTestRunner_PY3 import HTMLTestRunner
import app

num = app.base_path + '/script'
print(f'脚本路径：{num}')
suite = unittest.defaultTestLoader.discover(num, 'min*')
report_name = app.base_path + '/' + 'report/mini.html'
with open(report_name, 'wb') as f:
    runner = HTMLTestRunner(f)
    runner.run(suite)
